<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view locale="#{facesContext.externalContext.requestLocale}">
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>#{msg.titulo}</title>
</head>
<h:body>
<div class="superior">
<font size="40" color="#FFFFFF">#{msg.nome_banco}</font>
</div>
<ui:insert name="menu">
    <ui:include src="menu.xhtml" />
</ui:insert>
<h:form>
<div class="painel">
	<table border="0" width="100%">
	<tr>
		<td align="left" style="border-bottom: #FF6600 3px solid;" colspan="3"><b>#{msg.selecionar_favorecido}</b></td>
	</tr>
	<tr>
		<td style="border-bottom: #FF6600 1px solid;" align="right">#{msg.label_favorecido}</td>

		<td style="border-bottom: #FF6600 1px solid;" colspan="2">
			<h:selectOneMenu id="favorecidos" value="#{favorecidoMB.favorecido.codigo}" varStatus="status" required="true" converterMessage="#{msg.erro_obrigatorio}">
			<f:selectItem itemValue="" itemLabel="Selecione um Favorecido"/>
			<f:selectItems value="#{correntistaMB.itemsFavorecidos}" />
			</h:selectOneMenu>			
		</td>
	</tr>
	<tr>	
		<td align="center" colspan="3">
		<h:commandButton value="Novo" action="#{favorecidoMB.redireciona}" immediate="true" />	
		<h:commandButton value="Atualizar" action="#{favorecidoMB.buscaFavorecido}" />
		<h:commandButton value="Excluir" action="#{favorecidoMB.deleteFavorecido}" />
		</td>
	</tr>
	</table>
</div>
</h:form>
</h:body>
</f:view>
</html>